This is the function that must be in the native code to instantiate the application's native activity. It is called with the activity instance (see above); if the code is being instantiated from a previously saved instance, the savedState will be non-NULL and point to the saved data. You must make any copy of this data you need -- it will be released after you return from this function.
Flags for ANativeActivity_hideSoftInput; see the Java InputMethodManager API for documentation.
Flags for ANativeActivity_showSoftInput; see the Java InputMethodManager API for documentation.
Finish the given activity. Its finish() method will be called, causing it to be stopped and destroyed. Note that this method can be called from *any* thread; it will send a message to the main thread of the process where the Java finish call will take place.
Hide the IME while in the given activity. Calls InputMethodManager.hideSoftInput() for the given activity. Note that this method can be called from *any* thread; it will send a message to the main thread of the process where the Java finish call will take place.
The name of the function that NativeInstance looks for when launching its native code. This is the default function that is used, you can specify "android.app.func_name" string meta-data in your manifest to use a different function.
Change the window flags of the given activity. Calls getWindow().setFlags() of the given activity. Note that this method can be called from *any* thread; it will send a message to the main thread of the process where the Java finish call will take place. See window.h for flag constants.
Change the window format of the given activity. Calls getWindow().setFormat() of the given activity. Note that this method can be called from *any* thread; it will send a message to the main thread of the process where the Java finish call will take place.
Show the IME while in the given activity. Calls InputMethodManager.showSoftInput() for the given activity. Note that this method can be called from *any* thread; it will send a message to the main thread of the process where the Java finish call will take place.
This structure defines the native side of an android.app.NativeActivity. It is created by the framework, and handed to the application's native code as it is being launched.
These are the callbacks the framework makes into a native application. All of these callbacks happen on the main thread of the application. By default, all callbacks are NULL; set to a pointer to your own function to have it called.
@file native_activity.h